<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: PCLViewer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_p_c_l_viewer.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-slots">Public 槽</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_p_c_l_viewer-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">PCLViewer类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 PCLViewer 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_p_c_l_viewer.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public 槽</h2></td></tr>
<tr class="memitem:ab3556c065f146900d56428639912bef6"><td class="memItemLeft" align="right" valign="top"><a id="ab3556c065f146900d56428639912bef6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#ab3556c065f146900d56428639912bef6">saveFileButtonPressed</a> ()</td></tr>
<tr class="memdesc:ab3556c065f146900d56428639912bef6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggered whenever the "Save file" button is clicked <br /></td></tr>
<tr class="separator:ab3556c065f146900d56428639912bef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e9f59133311cc6eb1778e7654d9e90a"><td class="memItemLeft" align="right" valign="top"><a id="a4e9f59133311cc6eb1778e7654d9e90a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#a4e9f59133311cc6eb1778e7654d9e90a">loadFileButtonPressed</a> ()</td></tr>
<tr class="memdesc:a4e9f59133311cc6eb1778e7654d9e90a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggered whenever the "Load file" button is clicked <br /></td></tr>
<tr class="separator:a4e9f59133311cc6eb1778e7654d9e90a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7d2cbcbbc8a2aecd680194f89607835"><td class="memItemLeft" align="right" valign="top"><a id="ad7d2cbcbbc8a2aecd680194f89607835"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#ad7d2cbcbbc8a2aecd680194f89607835">axisChosen</a> ()</td></tr>
<tr class="memdesc:ad7d2cbcbbc8a2aecd680194f89607835"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggered whenever a button in the "Color on axis" group is clicked <br /></td></tr>
<tr class="separator:ad7d2cbcbbc8a2aecd680194f89607835"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaa2b13144a0768f651d62d66f138851"><td class="memItemLeft" align="right" valign="top"><a id="afaa2b13144a0768f651d62d66f138851"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#afaa2b13144a0768f651d62d66f138851">lookUpTableChosen</a> ()</td></tr>
<tr class="memdesc:afaa2b13144a0768f651d62d66f138851"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggered whenever a button in the "Color mode" group is clicked <br /></td></tr>
<tr class="separator:afaa2b13144a0768f651d62d66f138851"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c4f1bc731c4eb3bba18ef520f822da3"><td class="memItemLeft" align="right" valign="top"><a id="a4c4f1bc731c4eb3bba18ef520f822da3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>randomButtonPressed</b> ()</td></tr>
<tr class="separator:a4c4f1bc731c4eb3bba18ef520f822da3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22cc194e600b5b810146cf0486daf83e"><td class="memItemLeft" align="right" valign="top"><a id="a22cc194e600b5b810146cf0486daf83e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>RGBsliderReleased</b> ()</td></tr>
<tr class="separator:a22cc194e600b5b810146cf0486daf83e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e350a50bd66ff9d18b1d1d3e7793cd9"><td class="memItemLeft" align="right" valign="top"><a id="a4e350a50bd66ff9d18b1d1d3e7793cd9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>pSliderValueChanged</b> (int value)</td></tr>
<tr class="separator:a4e350a50bd66ff9d18b1d1d3e7793cd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c1e1fb4d99556630ff94326396a37e7"><td class="memItemLeft" align="right" valign="top"><a id="a7c1e1fb4d99556630ff94326396a37e7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>redSliderValueChanged</b> (int value)</td></tr>
<tr class="separator:a7c1e1fb4d99556630ff94326396a37e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad259e35b63dbabe3af359908f96ae9a6"><td class="memItemLeft" align="right" valign="top"><a id="ad259e35b63dbabe3af359908f96ae9a6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>greenSliderValueChanged</b> (int value)</td></tr>
<tr class="separator:ad259e35b63dbabe3af359908f96ae9a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4acf5f364e03149c5f580c2dba6d920b"><td class="memItemLeft" align="right" valign="top"><a id="a4acf5f364e03149c5f580c2dba6d920b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>blueSliderValueChanged</b> (int value)</td></tr>
<tr class="separator:a4acf5f364e03149c5f580c2dba6d920b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a33e8561a0baba13a5195a971dd935c6d"><td class="memItemLeft" align="right" valign="top"><a id="a33e8561a0baba13a5195a971dd935c6d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#a33e8561a0baba13a5195a971dd935c6d">PCLViewer</a> (QWidget *parent=0)</td></tr>
<tr class="memdesc:a33e8561a0baba13a5195a971dd935c6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor <br /></td></tr>
<tr class="separator:a33e8561a0baba13a5195a971dd935c6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82828db52c5df5e5341adb61b77a68eb"><td class="memItemLeft" align="right" valign="top"><a id="a82828db52c5df5e5341adb61b77a68eb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#a82828db52c5df5e5341adb61b77a68eb">~PCLViewer</a> ()</td></tr>
<tr class="memdesc:a82828db52c5df5e5341adb61b77a68eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor <br /></td></tr>
<tr class="separator:a82828db52c5df5e5341adb61b77a68eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33e8561a0baba13a5195a971dd935c6d"><td class="memItemLeft" align="right" valign="top"><a id="a33e8561a0baba13a5195a971dd935c6d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>PCLViewer</b> (QWidget *parent=0)</td></tr>
<tr class="separator:a33e8561a0baba13a5195a971dd935c6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:ab509b878b9948d202e6c9465ca8c6e82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#ab509b878b9948d202e6c9465ca8c6e82">colorCloudDistances</a> ()</td></tr>
<tr class="memdesc:ab509b878b9948d202e6c9465ca8c6e82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Color point cloud on X,Y or Z axis using a Look-Up Table (LUT) Computes a LUT and color the cloud accordingly, available color palettes are :  <a href="class_p_c_l_viewer.html#ab509b878b9948d202e6c9465ca8c6e82">更多...</a><br /></td></tr>
<tr class="separator:ab509b878b9948d202e6c9465ca8c6e82"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:aca709506e329fa817ab3431fe39f4024"><td class="memItemLeft" align="right" valign="top"><a id="aca709506e329fa817ab3431fe39f4024"></a>
boost::shared_ptr&lt; <a class="el" href="classpcl_1_1visualization_1_1_p_c_l_visualizer.html">pcl::visualization::PCLVisualizer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#aca709506e329fa817ab3431fe39f4024">viewer_</a></td></tr>
<tr class="memdesc:aca709506e329fa817ab3431fe39f4024"><td class="mdescLeft">&#160;</td><td class="mdescRight">The PCL visualizer object <br /></td></tr>
<tr class="separator:aca709506e329fa817ab3431fe39f4024"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a63a01abdd77db4b41231a077604a5b"><td class="memItemLeft" align="right" valign="top"><a id="a3a63a01abdd77db4b41231a077604a5b"></a>
PointCloudT::Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#a3a63a01abdd77db4b41231a077604a5b">cloud_</a></td></tr>
<tr class="memdesc:a3a63a01abdd77db4b41231a077604a5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The point cloud displayed <br /></td></tr>
<tr class="separator:a3a63a01abdd77db4b41231a077604a5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d5a80a18cfccf2f0a98dd7ae4ba5d17"><td class="memItemLeft" align="right" valign="top"><a id="a2d5a80a18cfccf2f0a98dd7ae4ba5d17"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#a2d5a80a18cfccf2f0a98dd7ae4ba5d17">filtering_axis_</a></td></tr>
<tr class="memdesc:a2d5a80a18cfccf2f0a98dd7ae4ba5d17"><td class="mdescLeft">&#160;</td><td class="mdescRight">0 = x | 1 = y | 2 = z <br /></td></tr>
<tr class="separator:a2d5a80a18cfccf2f0a98dd7ae4ba5d17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ce477bebffcdeffd242bc02a7012e1f"><td class="memItemLeft" align="right" valign="top"><a id="a1ce477bebffcdeffd242bc02a7012e1f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#a1ce477bebffcdeffd242bc02a7012e1f">color_mode_</a></td></tr>
<tr class="memdesc:a1ce477bebffcdeffd242bc02a7012e1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds the color mode for <a class="el" href="class_p_c_l_viewer.html#ab509b878b9948d202e6c9465ca8c6e82">colorCloudDistances</a> <br /></td></tr>
<tr class="separator:a1ce477bebffcdeffd242bc02a7012e1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15aaa2d9e84d6fd884208437288e6260"><td class="memItemLeft" align="right" valign="top"><a id="a15aaa2d9e84d6fd884208437288e6260"></a>
boost::shared_ptr&lt; <a class="el" href="classpcl_1_1visualization_1_1_p_c_l_visualizer.html">pcl::visualization::PCLVisualizer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>viewer</b></td></tr>
<tr class="separator:a15aaa2d9e84d6fd884208437288e6260"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a4447b4ad47214e6979a4d792846057"><td class="memItemLeft" align="right" valign="top"><a id="a7a4447b4ad47214e6979a4d792846057"></a>
PointCloudT::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>cloud</b></td></tr>
<tr class="separator:a7a4447b4ad47214e6979a4d792846057"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4ec2668d39c6fb7ccb8c71358f7434f"><td class="memItemLeft" align="right" valign="top"><a id="af4ec2668d39c6fb7ccb8c71358f7434f"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>red</b></td></tr>
<tr class="separator:af4ec2668d39c6fb7ccb8c71358f7434f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeed2ad926947214d3fc91ca50f3df99c"><td class="memItemLeft" align="right" valign="top"><a id="aeed2ad926947214d3fc91ca50f3df99c"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>green</b></td></tr>
<tr class="separator:aeed2ad926947214d3fc91ca50f3df99c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab21712a1c3dd73a25f63437a6865d8df"><td class="memItemLeft" align="right" valign="top"><a id="ab21712a1c3dd73a25f63437a6865d8df"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>blue</b></td></tr>
<tr class="separator:ab21712a1c3dd73a25f63437a6865d8df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a9a6df16d70a9aaa4f11b71a743ebe551"><td class="memItemLeft" align="right" valign="top"><a id="a9a6df16d70a9aaa4f11b71a743ebe551"></a>
Ui::PCLViewer *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_p_c_l_viewer.html#a9a6df16d70a9aaa4f11b71a743ebe551">ui</a></td></tr>
<tr class="memdesc:a9a6df16d70a9aaa4f11b71a743ebe551"><td class="mdescLeft">&#160;</td><td class="mdescRight">ui pointer <br /></td></tr>
<tr class="separator:a9a6df16d70a9aaa4f11b71a743ebe551"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">成员函数说明</h2>
<a id="ab509b878b9948d202e6c9465ca8c6e82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab509b878b9948d202e6c9465ca8c6e82">&#9670;&nbsp;</a></span>colorCloudDistances()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PCLViewer::colorCloudDistances </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Color point cloud on X,Y or Z axis using a Look-Up Table (LUT) Computes a LUT and color the cloud accordingly, available color palettes are : </p>
<p>Values are on a scale from 0 to 255: 0. Blue (= 0) -&gt; Red (= 255), this is the default value</p><ol type="1">
<li>Green (= 0) -&gt; Magenta (= 255)</li>
<li>White (= 0) -&gt; Red (= 255)</li>
<li>Grey (&lt; 128) / Red (&gt; 128)</li>
<li>Blue -&gt; Green -&gt; Red (~ rainbow)</li>
</ol>
<dl class="section warning"><dt>警告</dt><dd>If there's an outlier in the data the color may seem uniform because of this outlier! </dd></dl>
<dl class="section note"><dt>注解</dt><dd>A boost rounding exception error will be thrown if used with a non dense point cloud </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>doc/tutorials/content/sources/qt_colorize_cloud/<a class="el" href="qt__colorize__cloud_2pclviewer_8h_source.html">pclviewer.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_p_c_l_viewer.html">PCLViewer</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
